<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<title>会员中心</title>
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
		<link rel="stylesheet" href="__STATIC__/libs/bui/css/bui.css">
		<link rel="stylesheet" href="__STATIC__/icon/icon.css">
		<link rel="stylesheet" href="__STATIC__/member/default/wapindex/index.css">
		<script src="__STATIC__/js/core/jquery.min.js"></script>
		<script src="__STATIC__/libs/bui/js/bui.js"></script>
		<style></style>
	</head>
	<body>
<!--下面是钩子插件,做风格的时候尽量加上,方便扩展  -->
{:hook_listen('layout_member_body_head',$userdb,['webdb'=>$webdb,'info'=>$info],true)}
<div class="bui-page">
    <header>
        <div class="wrap-user-header">
            <ul class="bui-list user-pic">
                <li class="bui-btn bui-box user-btn">
                    <div class="thumbnail a" href="{:get_url('user',$info.uid)}"><img src="{$info.icon|tempdir}" class="pic"  onerror="this.src='__STATIC__/images/nobody.gif'" /></div>
                    <div class="span1">
                        <h3 class="item-title" style="line-height:20px;" title="昵称：{$info.nickname}">{$info.username}
						{volist name=":get_user($info.uid)['qun_group']" id="rs"}
									{if $rs.type==4}<a href="{:iurl('qun/content/show',['id'=>$rs['aid']])}" title="归属于 {:fun('qun@getByid',$rs['aid'])['title']} 的VIP会员"  style="margin:0 5px;"><img src="{:tempdir(fun('qun@getByid',$rs['aid'])['vip_img'])}" onerror="this.src='__STATIC__/images/vip.png'" height="16"></a>{/if}
							   {/volist}
						</h3>
                        <p class="item-text">级别：{$info.groupid|getGroupByid} UID：{$info.uid}</p>
                        <div class="account-address">
                            <i class="user-right fa fa-clock-o"></i> 注册日期 {$info.regdate|format_time}
                        </div>
                    </div>
                </li>
            </ul>
            <ul class="bui-nav user-nav">
                <li class="bui-btn" href="{:purl('marketing/rmb/index')}">
                    <span>{$info.rmb}</span>
                    <div class="span1">可用余额</div>
                </li>
                <li class="bui-btn" href="{:purl('marketing/rmb/index')}">
                    <span>{$info.rmb_freeze}</span>
                    <div class="span1">冻结余额</div>
                </li>
                <li class="bui-btn" href="{:purl('marketing/jifen/index')}">
                    <span>{$info.money}</span>
                    <div class="span1">积分(个)</div>
                </li>
            </ul>
        </div>
    </header>
   
   <main>

{if $menu['often']['sons']}	<!--会员组个性菜单开始-->
	{volist name="menu.often.sons" id="vo"}
		<div class="bui-panel panel-usercenter">
            <div class="bui-panel-head bui-box-align-middle">
                <i class="icon-member" style="color:#8CC9FD;"><span class="{$vo.icon|default='fa fa-sun-o'}"></span></i>
                <div class="span1">{$vo.title}</div>
                <div class="panel-head-right"><i class="icon-listright"></i></div>
            </div>
            <div class="bui-panel-main">
		{volist name=":array_chunk($vo['sons'], 4)" id="rs1"}
                <ul class="bui-nav nav-list">

		{php}while(count($rs1)<4)$rs1[]='';	/*为的是生成占位符*/{/php}

              {volist name="rs1" id="rs"}
                    <li class="bui-btn bui-box-vertical" href="{$rs.url}" {notempty name='$rs.bgcolor'}style="background-color:{$rs.bgcolor};"{/notempty}>
				{if is_array($rs)}
                        <i {notempty name='$rs.fontcolor'}style="color:{$rs.fontcolor};"{/notempty} class="{$rs.icon|default='fa fa-gg'}">
                            <!--<span class="bui-badges">10</span>-->
                        </i>
                        <div class="span1" {notempty name='$rs.fontcolor'}style="color:{$rs.fontcolor};"{/notempty}>
                            {$rs.title}
                        </div>
				{/if} {$rs.script}
                    </li>
			{/volist}
                </ul>
		{/volist}
            </div>
        </div>
	{/volist}

{else /}<!--会员组个性菜单结束，默认菜单开始标签-->

<!--基础功能开始-->
        <div class="bui-panel panel-usercenter">
            <div class="bui-panel-head bui-box-align-middle">
                <i class="icon-service"><span style="color:{$menu['base']['sons'][0]['fontcolor']?:''}" class="{$menu['base']['sons'][0]['icon']?:'glyphicon glyphicon-star-empty'}"></span></i>
                <div class="span1">{$menu['base']['sons'][0]['title']}</div>
                <div class="panel-head-right a" href="{:get_url('user',$info.uid)}">我的主页<i class="icon-listright"></i></div>
            </div>
            <div class="bui-panel-main">
{volist name=":array_chunk($menu['base']['sons'][0]['sons'], 4)" id="rs1"}
				<ul class="bui-nav nav-list">

{php}while(count($rs1)<4)$rs1[]='';	/*为的是生成占位符*/{/php}

              {volist name="rs1" id="rs"}
                    <li class="bui-btn bui-box-vertical" href="{$rs.url}" {notempty name='$rs.bgcolor'}style="background-color:{$rs.bgcolor};"{/notempty}>
				{if is_array($rs)}
                        <i {notempty name='$rs.fontcolor'}style="color:{$rs.fontcolor};"{/notempty} class="{$rs.icon|default='fa fa-gg'}">
                            <!--<span class="bui-badges">10</span>-->
                        </i>
                        <div class="span1" {notempty name='$rs.fontcolor'}style="color:{$rs.fontcolor};"{/notempty}>
                            {$rs.title}
                        </div>
				{/if} {$rs.script}
                    </li>
			{/volist}
                </ul>
{/volist}
            </div>
        </div>
<!--基础功能结束-->

<!--独立菜单的频道开始-->
{volist name="$menu" id="rs2"}
{php}if(in_array($key,['plugin','base','module']))continue;{/php}
		<div class="bui-panel panel-usercenter">
            <div class="bui-panel-head bui-box-align-middle">
                <i class="icon-member" style="color:{$rs2.fontcolor?:'#8CC9FD'};"><span class="{$rs2.icon}"></span></i>
                <div class="span1">{$rs2.title}{$rs2.script}</div>
                <div class="panel-head-right a" href="{:iurl($key.'/index/index')}">浏览前台<i class="icon-listright"></i></div>
            </div>
            <div class="bui-panel-main">
{volist name=":array_chunk($rs2['sons'][0]['sons'], 4)" id="rs1"}
                <ul class="bui-nav nav-list">

{php}while(count($rs1)<4)$rs1[]='';	/*为的是生成占位符*/{/php}

              {volist name="rs1" id="rs"}
                    <li class="bui-btn bui-box-vertical" href="{$rs.url}" {notempty name='$rs.bgcolor'}style="background-color:{$rs.bgcolor};"{/notempty}>
				{if is_array($rs)}
                        <i {notempty name='$rs.fontcolor'}style="color:{$rs.fontcolor};"{/notempty} class="{$rs.icon|default='fa fa-gg'}">
                            <!--<span class="bui-badges">10</span>-->
                        </i>
                        <div class="span1" {notempty name='$rs.fontcolor'}style="color:{$rs.fontcolor};"{/notempty}>
                            {$rs.title}
                        </div>
				{/if} {$rs.script}
                    </li>
			{/volist}
                </ul>
{/volist}
            </div>
        </div>
{/volist}
<!--独立菜单的频道结束-->

<style type="text/css">
.morelink{width:100%;text-align:left;}
</style>
<!--功能插件开始-->
		<div class="bui-panel panel-usercenter">
            <div class="bui-panel-head bui-box-align-middle">
                <i class="icon-member" style="color:#e8a4cb;"><span class="fa fa-gears"></span></i>
                <div class="span1">功能插件</div>
                <div class="panel-head-right"></div>
            </div>
            <div class="bui-panel-main">
{volist name=":array_chunk($menu['plugin']['sons'], 4)" id="rs1"}
                <ul class="bui-nav nav-list">

{php}while(count($rs1)<4)$rs1[]='';	/*为的是生成占位符*/{/php}

              {volist name="rs1" id="rs"}
                    <li class="bui-btn bui-box-vertical show-more-menu">
				{if is_array($rs)}
                        <i class="{$rs.icon}" {if $rs.fontcolor!=''}style="color:{$rs.fontcolor};"{/if}>
                            <!--<span class="bui-badges">10</span>-->
                        </i>
                        <div class="span1" {if $rs.fontcolor!=''}style="color:{$rs.fontcolor};"{/if}>
                            {$rs.title}
                        </div>{$rs.script}
				{/if}
                    </li>
					<div class="list-sons">
					{volist name="$rs.sons" id="rs1"}
						<li><a href="{$rs1.url}" class="morelink {$rs1.icon|default='fa fa-chevron-right'}" {notempty name='$rs1.fontcolor'}style="color:{$rs1.fontcolor};"{/notempty}> {$rs1.title}</a>{$rs1.script}</li>
					{/volist}
					</div>
			{/volist}
                </ul>
{/volist}
            </div>
        </div>
<!--功能插件结束-->


<!--非独立菜单的频道开始-->
        <ul class="bui-list menu-list">
{volist name="$menu['module']['sons']" id="rs"}
            <li class="bui-btn bui-box show-more-menu">
                <i class="icon-service"><dd {if $rs.fontcolor!=''}style="color:{$rs.fontcolor};"{/if} class="{$rs.icon}"></dd></i>
                <div class="span1" >{$rs.title}{$rs.script}</div>
                <span class="tips"></span>
                <i class="icon-listright"></i>
            </li>
			<div class="list-sons">
			{volist name="$rs.sons" id="rs1"}
                <li><a href="{$rs1.url}" class="morelink {$rs1.icon|default='fa fa-chevron-right'}" {notempty name='$rs1.fontcolor'}style="color:{$rs1.fontcolor};"{/notempty}> {$rs1.title}</a>{$rs1.script}</li>
			{/volist}
            </div>
{/volist}
        </ul>
<!--非独立菜单的频道结束-->

{/if}<!--默认菜单结束标签-->

		<div class="bui-panel panel-usercenter">
            <div class="bui-panel-head bui-box-align-middle">
                <i class="icon-money">&#xe63a;</i>
                <div class="span1">虚拟财富</div>
                <div class="panel-head-right a" href="{:purl('marketing/money/index')}">兑换互换<i class="icon-listright"></i></div>
            </div>
            <div class="bui-panel-main">
                <ul class="bui-nav nav-list">
{volist name=":jf_name()" id="name"}
                    <li class="bui-btn bui-box-vertical">
                        <span>{:get_user_money($key,$info.uid)}</span>
                        <div class="span1">{$name}</div>
                    </li>
{/volist}
                </ul>
            </div>
        </div>

        <ul class="bui-list menu-list" >
            <li class="bui-btn bui-box" href="{:iurl('index/login/quit')}">
                <i class="icon-guess"><span class="fa fa-sign-out"></span></i>
                <div class="span1">退出登录</div>
                <i class="icon-listright"></i>
            </li>
        </ul>
    </main>
    <footer>
        <ul class="bui-nav footer-nav">
		{volist name=":fun('page@foot_menu')" id="rs"}
            <li class="bui-btn bui-box-vertical {:strstr($rs['url'],'/member/index')?'active':''}" href="{$rs.url}">
                <i class="{$rs.style|default='glyphicon glyphicon-star'}"></i>
                <div class="span1">{$rs.name}</div>
            </li>
		{/volist}
			<!--
            <li class="bui-btn bui-box-vertical active">
                <i class="icon-user"></i>
                <div class="span1">我的</div>
            </li>-->
        </ul>
    </footer>
</div>

<div id="editmodes"></div>
<div class="fullbg"></div>
<script src="__STATIC__/member/default/wapindex/index.js"></script>

<!--下面是钩子插件,做风格的时候尽量加上,方便扩展-->
{:hook_listen('layout_member_body_foot',$userdb,['webdb'=>$webdb,'info'=>$info],true)}

</body>
</html>